package xcmg.device.dao.mapper;

import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.boxup.DeliveryReceiptDetailDO;
import org.apache.ibatis.annotations.Mapper;
import xcmg.device.service.vo.boxup.BoxupMaterialsQuery;

import java.util.List;

@Mapper
public interface DeliveryReceiptDetailMapper {
    int insert(DeliveryReceiptDetailDO record);

    DeliveryReceiptDetailDO item(@Param("deliveryReceiptId")String deliveryReceiptId,@Param("packCode")String packCode);

    int update(DeliveryReceiptDetailDO recode);

    List<DeliveryReceiptDetailDO> detalList(@Param("deliveryReceiptId")String deliveryReceiptId);

    DeliveryReceiptDetailDO computeTotal(BoxupMaterialsQuery boxupMaterialsQuery);

    int deleteByCode(@Param("deliveryReceiptId")String deliveryReceiptId,@Param("packCode")String packCode);

    List<DeliveryReceiptDetailDO> listPackInfoByJckBillNo(@Param("billNo") String billNo);

    void syncPackInfo(DeliveryReceiptDetailDO deliveryReceiptDetailDO);

    int updateByDeliveryNo(DeliveryReceiptDetailDO recode);

}